package ua.com.alus.resvac.crm.domen.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 * Created by Usatov Alexey
 */
@Entity
@Table(name = "PROFESSION_AREA")
@NamedQueries(
        @NamedQuery(name = ProfessionArea.SELECT_ALL_QUERY, query = "SELECT p FROM ProfessionArea p order by uuid")
)
public class ProfessionArea {

    public static final String SELECT_ALL_QUERY = "ua.com.alus.resvac.crm.domen.entities.ProfessionArea.selectAll";

    @Id
    @Column(name = "PK_UUID")
    private String uuid;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    @Column(name = "NAME")
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
